//
//  HttpRequest.h
//  OrderSeat
//
//  Created by 王威 on 13-11-4.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASIFormDataRequest.h"
#import "ASIDownloadCache.h"

@interface HttpRequest : NSObject<ASIHTTPRequestDelegate>

@property (nonatomic,strong) NSMutableArray *requestArray;

- (id)initWithVC:(id)viewController;

- (void)cancel;

- (void)get:(NSString*)aURL;

- (void)get:(NSString*)aURL
        tag:(int)tag;


//普通post数据用的
-(void)post:(NSString*)aURL
 dataString:(NSString*)dataString;

-(void)post:(NSString*)aURL
 dataString:(NSString*)dataString
        tag:(int)tag;

//普通post数据用的
-(void)post:(NSString*)aURL
     params:(NSDictionary *) params;

-(void)post:(NSString*)aURL
     params:(NSDictionary *) params
        tag:(int)tag;


//传图片用的
- (void)post:(NSString*)aURL
        data:(NSData*)data
 extraParams:(NSDictionary *) params;

- (void)post:(NSString*)aURL
        data:(NSData*)data
 extraParams:(NSDictionary *) params
         tag:(int)tag;

//传图片用的
- (void)post:(NSString*)aURL
        file:(NSString *)file
 extraParams:(NSDictionary *)params;

- (void)post:(NSString*)aURL
        file:(NSString *)file
 extraParams:(NSDictionary *)params
         tag:(int)tag;

//批量传图片用的
- (void)post:(NSString*)aURL
  filesArray:(NSArray *)files
 extraParams:(NSDictionary *)params;

- (void)post:(NSString*)aURL
  filesArray:(NSArray *)files
 extraParams:(NSDictionary *)params
         tag:(int)tag;

@end